			
            <div id="title-bar">
                <h2 id="title-page">Thêm bài viết mới</h2>
            </div>
            
            <div class="clearfix"></div>
            <?php echo form_open_multipart()?>
            	<div class="row-fluid">
                    <div class="span9">
                        <div class="widget shadow-div border-radius4">
                            <h4>Tiêu đề bài viết</h4>
                            <div class="editor-field">
                                <input type="text" name="Title_vn" class="input-fixedfull" placeholder="Tiếng việt..." value="<?php echo set_value('Title_vn') ?>" />
                                <div class="error-validation">
                                	<?php echo form_error('Title_vn')?>
                                    
                                </div>
                            </div>
                            <div class="editor-field">
                                <input type="text" name="Title_en" class="input-fixedfull" placeholder="Tiếng anh..." value="<?php echo set_value('Title_en') ?>" />
                            </div>
                        </div>
                        <div class="widget shadow-div border-radius4">
                            <h4>Tóm tắt bài viết</h4>
                            <div class="editor-field">
                                <textarea id="cke_sumary_vn" name="Sumary_vn" style="width:98%" placeholder="Tiếng việt..."><?php echo set_value('Sumary_vn') ?></textarea>
                                <div class="error-validation">
                                	<?php echo form_error('Sumary_vn')?>
                                    
                                </div>
                            </div>
                            <div class="editor-field">
                                <textarea id="cke_sumary_en" name="Sumary_en" style="width:98%" placeholder="Tiếng anh..."><?php echo set_value('Sumary_en') ?></textarea>
                            </div>
                        </div>
                        <div class="widget shadow-div border-radius4">
                            <h4>Nội dung bài viết</h4>
                            <div class="editor-field">
                            	Tiếng việt
                                <textarea id="cke_detail_vn" name="Detail_vn" placeholder="Tiếng việt..."><?php echo set_value('Detail_vn') ?></textarea>
                                <div class="error-validation">
                                	<?php echo form_error('Detail_vn')?>
                                    
                                </div>
                            </div>
                            <div class="editor-field">
                            	Tiếng anh
                                <textarea id="cke_detail_en" name="Detail_en" placeholder="Tiếng anh..."><?php echo set_value('Detail_en') ?></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="span3">
                    	<div class="widget shadow-div border-radius4">
                            <h4>Loại bài viết</h4>
                            <div class="editor-field">
                                <select name="typepost" class="chosen-select-typepost" data-placeholder="Chọn loại bài viết...">
                                	<?php foreach($listtypepost as $row){?>
                        
                    					<option value="<?php echo $row->TpId ?>" <?php echo set_select('typepost',$row->TpId)?>><?php echo $row->Name_vn ?></option>
                        			<?php }?>
                        
                                </select>
                            </div>
                        </div>
                        <div class="widget shadow-div border-radius4">
                            <h4>Hình ảnh</h4>
                            <div class="editor-field">
                            	<div class="preview-image">
                                	<img src="" alt="" />
                                </div>
                                <input type="file" name="Image" id="image_post" class="input_image" />
                                <div class="error-validation">
                                	<?php echo $errorupload?>
                                    
                                </div>
                            </div>
                        </div>
                    </div><!-- End .span3 -->
                </div>
                <div class="clearfix"></div>
                <div class="list-controls">
                	<div class="btn-toolbar">
                    	<div class="btn-group">
                        	<button id="btnSave" class="btn btn-small btn-success btn-strong" value="Thêm bài viết" name="btnSave" type="submit">Thêm bài viết</button>
                        </div>
                    </div>
                </div>
                <hr/>
            <?php echo form_close()?>
            
            <script type="text/javascript">
				CKEDITOR.replace( 'cke_detail_vn', {customConfig: 'config2.js'});
				CKEDITOR.replace( 'cke_detail_en', {customConfig: 'config2.js'});				
				$(".chosen-select-typepost").chosen();
				$("input[type=file]").customFile();				
			</script>
            